package at.exam;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.EditText;

public class DangNhapActivity extends Activity{
	Button dang_nhap_button;
	EditText ten_dang_nhap;
	EditText mat_khau;
	@Override
	public void onCreate (Bundle savedInstanceState)
	{
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_dang_nhap);
		ten_dang_nhap = (EditText) findViewById(R.id.editText3);
		mat_khau = (EditText) findViewById(R.id.editText2);
		dang_nhap_button = (Button) findViewById(R.id.button2);
		dang_nhap_button.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				Intent nextScreen = new Intent(getApplicationContext(), MainActivity.class);
				//nextScreen.putExtra("name", ten_dang_nhap.getText().toString());
				startActivity(nextScreen);
				// TODO Auto-generated method stub
				finish();
			}
		});
	}

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub

	}

}
